import 'package:xin_nuo_pda/bean/repair_list_entity.dart';

repairListEntityFromJson(RepairListEntity data, Map<String, dynamic> json) {
	if (json['REPAIRLIST'] != null) {
		data.rEPAIRLIST = (json['REPAIRLIST'] as List).map((v) => RepairListREPAIRLIST().fromJson(v)).toList();
	}
	return data;
}

Map<String, dynamic> repairListEntityToJson(RepairListEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['REPAIRLIST'] =  entity.rEPAIRLIST?.map((v) => v.toJson())?.toList();
	return data;
}

repairListREPAIRLISTFromJson(RepairListREPAIRLIST data, Map<String, dynamic> json) {
	if (json['SHEETID'] != null) {
		data.sHEETID = json['SHEETID'].toString();
	}
	if (json['TROUBLECODE'] != null) {
		data.tROUBLECODE = json['TROUBLECODE'].toString();
	}
	if (json['EQUIPMENTID'] != null) {
		data.eQUIPMENTID = json['EQUIPMENTID'].toString();
	}
	if (json['TROUBLECOMMENT'] != null) {
		data.tROUBLECOMMENT = json['TROUBLECOMMENT'].toString();
	}
	if (json['TROUBLETIME'] != null) {
		data.tROUBLETIME = json['TROUBLETIME'].toString();
	}
	if (json['TROUBLEREPORTER'] != null) {
		data.tROUBLEREPORTER = json['TROUBLEREPORTER'].toString();
	}
	if (json['TROUBLEREPORTERNAME'] != null) {
		data.tROUBLEREPORTERNAME = json['TROUBLEREPORTERNAME'].toString();
	}
	if (json['OWNER'] != null) {
		data.oWNER = json['OWNER'].toString();
	}
	if (json['STATUS'] != null) {
		data.STATUS = json['STATUS'].toString();
	}
	return data;
}

Map<String, dynamic> repairListREPAIRLISTToJson(RepairListREPAIRLIST entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['SHEETID'] = entity.sHEETID;
	data['TROUBLECODE'] = entity.tROUBLECODE;
	data['EQUIPMENTID'] = entity.eQUIPMENTID;
	data['TROUBLECOMMENT'] = entity.tROUBLECOMMENT;
	data['TROUBLETIME'] = entity.tROUBLETIME;
	data['TROUBLEREPORTER'] = entity.tROUBLEREPORTER;
	data['TROUBLEREPORTERNAME'] = entity.tROUBLEREPORTERNAME;
	data['OWNER'] = entity.oWNER;
	data['STATUS'] = entity.STATUS;
	return data;
}